Skip to content

feat/db: add schema generation make target#1502

Closed
drahnr wants to merge 1 commit intonextfrom
bernhard-diesel-schema-changes
Closed

feat/db: add schema generation make target#1502
drahnr wants to merge 1 commit intonextfrom
bernhard-diesel-schema-changes

Conversation

@drahnr
Copy link
Contributor

@drahnr drahnr commented Jan 12, 2026

Ref #1470

Adds a make schema target to regenerate the diesel schema from an existing.

Attention

I do not like the approach, since we require a patch file, which is brittle at best for changing schemas.

Alternatives

Consider using a build.rs based approach.

@drahnr drahnr marked this pull request as draft January 12, 2026 14:23
@drahnr drahnr changed the title feat: add schema generation make target feat/db: add schema generation make target Jan 13, 2026
@drahnr
Copy link
Contributor Author

drahnr commented Feb 26, 2026

I don't think this works sufficiently well, it always requires applying patches for data types, which makes the entire thing brittle at best. Adding a comment is probably better rather than introducing complexity that will remain incapable addressing the problem fully.

@drahnr drahnr closed this Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant